Within the X-10 set of commands, there is a special command which can be used to extend the capabilities of 'smart' devices which communicate via the powerlines. It was originally intended to be used as a method of setting a 'preset dim' level for lamp dimmers.
( This command has no relationship to the XTension feature "Simulate Preset Dim"....)
In recent years, it has been discovered by developers to be a reasonable way of passing parameters between 'smart' devices on the X-10 bus.
One of these devices is the RCS Thermostat which uses the preset dim command both to set special variables in the thermostat, as well as for sending the current status of the thermostat back to XTension.
Basically, the command is sent to a specific address. Attached to it is a value of between 0 and 31.
You can issue these commands from your scripts, and XTension will automatically store the latest received 'preset' value in the database.
You can then test that value in your scripts.
preset or preset address Command a named unit or specific address
[to level integer] -- specifies the level from 0 to 31
example : preset "RCS Temp Setting" to level 25
preset of (unit) -- Returns the current 'Preset' value for a specific named unit
preset of string -- unit name
example : write log "the current preset for RCS Temp is :" & preset of "RCS Temp Setting"
Watch for things about this command on the website, and on the XTension discussion list. There will likely be some 'plug-ins' that will make a particular product 'easy' to integrate into your XTension system.